<template>
  <a-drawer
    title="单元信息"
    :maskClosable="false"
    width=650
    placement="right"
    :closable="true"
    @close="close"
    :visible="unitInfoVisiable"
    style="height: calc(100% - 55px);overflow: auto;padding-bottom: 53px;">
      <p><a-icon type="fire" />&nbsp;&nbsp;单元编号：{{unitInfoData.unitNum}}</p>
      <p><a-icon type="fire" />&nbsp;&nbsp;单元名称：{{unitInfoData.unitName}}</p>
      <p><a-icon type="fire" />&nbsp;&nbsp;权重：{{unitInfoData.unitWeight}}</p>
      <p><a-icon type="fire" />&nbsp;&nbsp;分数：{{unitInfoData.unitScore}}</p>
      <p><a-icon type="clock-circle" />&nbsp;&nbsp;创建时间：{{unitInfoData.createTime}}</p>
      <p><a-icon type="clock-circle" />&nbsp;&nbsp;修改时间：{{unitInfoData.modifyTime? unitInfoData.modifyTime : '暂未修改'}}</p>
  </a-drawer>
</template>
<script>
export default {
  name: 'UnitInfo',
  props: {
    unitInfoVisiable: {
      require: true,
      default: false
    },
    unitInfoData: {
      require: true
    }
  },
  data () {
    return {
      key: +new Date(),
      loading: true,
      checkedKeys: [],
      menuTreeData: []
    }
  },
  methods: {
    close () {
      this.$emit('close')
      this.checkedKeys = []
    }
  },
  computed: {
  }
}
</script>
